package com.zscbw.test;

import java.lang.reflect.Constructor;

public class Constructor1 {
	public Constructor1() {

	}
	public Constructor1(int i, double d) {

	}
	public static void main(String[] args) {
		try {
			Class<?> cls = Class.forName("com.zscbw.test.Constructor1");
			Constructor[] cons = cls.getDeclaredConstructors();
			for (int i = 0; i < cons.length ; i++) {
				Constructor c = cons[i];
				System.out.println("name : " + c.getName());
				System.out.println("decl class : " + c.getDeclaringClass());
				Class<?> pevc[] = c.getParameterTypes();
				for (int j = 0; j < pevc.length ; j++) {
					System.out.println(" param #" + j + " " + pevc[j]);
				}
				Class<?> evec[] = c.getExceptionTypes();
				for (int j = 0; j < evec.length ; j++) {
					System.out.println("evec #" + j + " " + evec[j]);
				}
				System.out.println("-------------------------------!");
			}
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
